$def with (err)

<div role="article" class="coursera-body">
	<div class="container">
		<div class="coursera-full-canvas">
			<div class="row">
				<div class="span12">
					<div class="heading-banner">
						<a href="https://www.coursera.org/about/reporter?area=signin"
							target="_blank" style="display: none;"
							class="coursera-reporter-link">Help</a>
						<h1 style="font-size: 31px">Sign Up</h1>
					</div>
				</div>
			</div>
			<div class="row">
				<div style="border-right: solid #d9d9d9 1px;" class="span9">
					<div style="padding-top: 20px; padding-right: 20px;">
						<form method="POST" class="coursera-signup form-horizontal">
							$if err==1:
								<div id="signup-duplicate" role="alert"
									class="control-group error alert alert-error">
									An account already exists with this email address. Please try
									again or consider <a href="/account/reset"
										class="internal-home">resetting your password</a>.
								</div>
							$else:
								<div id="signup-duplicate" role="alert"
									class="control-group hide error alert alert-error">
									An account already exists with this email address. Please try
									again or consider <a href="/account/reset"
										class="internal-home">resetting your password</a>.
								</div>
							<div id="signup-error" role="alert"
								class="control-group hide error alert alert-error">
								Sorry, but we ran into an error trying to process your request.
								Please try again later or contact <a
									href="mailto:geotextbook@gmail.com">geotextbook@gmail.com</a>
								for more help.
							</div>
							<div class="control-group">
								<label for="coursera-signup-fullname" class="control-label">Full
									Name</label>
								<div class="controls">
									<input type="text" title="Your full name"
										id="coursera-signup-fullname" name="name"
										aria-describedby="coursera-signup-fullname-help"
										data-form-required="data-form-required"
										data-form-schema="string+" placeholder="Full Name"
										data-form-error="Please enter a real name"
										data-form-correct="Nice to meet you!" class="placeholder"><span
										id="coursera-signup-fullname-help" tabindex="-1"
										class="help-inline">Please use your real name</span>
								</div>
							</div>
							<div class="control-group">
								<label for="coursera-signup-email" class="control-label">Email
									Address</label>
								<div class="controls">
									<input type="email" title="Your email address"
										id="coursera-signup-email" name="email" required="required"
										aria-required="true"
										data-form-error="This doesnt look like a valid email"
										aria-describedby="coursera-signup-email-help,coursera-signup-email-error"
										data-form-required="data-form-required"
										data-form-schema="email"
										data-form-correct="Looks good! We&#39;ll send you a welcome email."
										placeholder="Email Address"
										data-allow-email-suggestions="data-allow-email-suggestions"
										class="placeholder"><span
										id="coursera-signup-email-help" tabindex="-1"
										class="help-inline"></span>
								</div>
							</div>
							<div class="control-group">
								<label for="coursera-signup-password" class="control-label">Password</label>
								<div class="controls">
									<input type="password" title="Create a new password"
										id="coursera-signup-password" pattern=".{4,}" name="password"
										required="required" aria-required="true"
										data-form-required="data-form-required"
										data-form-properties="{&quot;min&quot;:4}"
										data-form-error="Use a stronger password please!"
										data-form-correct="Thanks. Don&#39;t forget it"
										aria-describedby="coursera-signup-password-help,coursera-signup-password-error"
										placeholder="Password" class="placeholder"><span
										id="coursera-signup-password-help" tabindex="-1"
										class="help-inline"></span>
								</div>
							</div>
							<div class="control-group">
								<label for="coursera-signup-password-confirm"
									class="control-label">Confirm Password</label>
								<div class="controls">
									<input type="password" title="Confirm your password"
										id="coursera-signup-password-confirm" name="verifyPassword"
										required="required" aria-required="true"
										data-form-error="This doesn&#39;t match the first password"
										data-form-correct="Looks good!"
										aria-describedby="coursera-signup-password-confirm-help,coursera-signup-password-error"
										placeholder="Confirm Password" class="placeholder"><span
										id="coursera-signup-password-confirm-help" tabindex="-1"
										class="help-inline"></span>
								</div>
							</div>
							<div style="margin-top: -10px;" class="control-group">
								<label for="coursera-signup-agree"
									class="hidden-label control-label">Terms of Service</label>
								<div class="controls">
									<label class="checkbox"><input type="checkbox"
										name="agree" id="coursera-signup-agree" required="required"
										aria-required="true"
										aria-describedby="coursera-signup-terms-help"
										data-form-required="data-form-required"
										data-form-error="Please agree to our Terms and the Honor Code"
										value="1">I agree to the&nbsp;<a
										href="javascript:void(0);" target="tab1">Terms
											of Service</a>&nbsp;and <a
										href="javascript:void(0);"
										target="tab2">Honor Code</a> </label><span
										id="coursera-signup-terms-help" role="alert" tabindex="-1"
										class="hide help-inline">Please agree to our Terms and the Honor Code</span>
								</div>
							</div>
							<div style="margin-top: 15px;" class="control-group">
								<div class="controls">
									<button type="submit"
										class="btn btn-success coursera-signup-button">Sign
										Up</button>
									<button disabled="disabled"
										class="btn coursera-signup-button-waiting hide">
										<img src="/static/images/loading.gif">
									</button>
								</div>
							</div>
						</form>
					</div>
				</div>
				<div style="margin-left: -1px;" class="span3">
					<div style="padding: 20px;">
						<h3>Have an Account?</h3>
						<p>
							If you already have a password, please<a
								href="/account/signin"
								class="internal-auth"> sign in</a>.
						</p>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script type="text/javascript">
window.onload=signup_onload;
</script>
